<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home extends CI_Controller {
    function  __construct(){
        parent::__construct();        
        $this->load->library('email');
    }
    function index(){
		$this->load->library('form_validation');
        $data['content']=$this->load->controller('mod_content/mod_content');
        $this->form_validation->set_rules('email', 'Email ', 'trim|required|valid_email|xss_clean');
        $this->form_validation->set_rules('password', 'Mật khẩu ', 'trim|required|xss_clean');
        $this->form_validation->set_rules('name','Họ và tên','required|xss_clean');     
        $this->form_validation->set_rules('type','Tài khoản','required|xss_clean');     
        $this->load->view('index',$data);
    }
}